import axios from 'axios'

export function requestBody8080(config) {
    const instance = axios.create({
        baseURL: 'http://localhost:8080',
        timeout: 5000,
   })
    //设置post的Content-Type
    instance.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
    instance.defaults.headers.get['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'

    return instance(config);
}







